package com.zw.yzk.kabu.data.network.entity;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanwei on 2017/3/4.
 */

public class MessageListEntity extends Entity {

    @Expose
    @SerializedName("result")
    public Result result;

    public MessageListEntity() {
        result = new Result();
        result.messageList = new ArrayList<>();
    }

    public class Result {
        @Expose
        @SerializedName("total_rows")
        public int total;
        @Expose
        @SerializedName("message_list")
        public List<Message> messageList;
    }

    public static class Message {
        @Expose
        @SerializedName("id")
        public int messageId; // 消息id
        @Expose
        @SerializedName("a_user_id")
        public int actorId; // 动作发起者
        @Expose
        @SerializedName("a_nick_name")
        public String nickName;// 动作发起者用户昵称
        @Expose
        @SerializedName("a_headimg_url")
        public String head; // 动作发起者头像
        @Expose
        @SerializedName("action")
        public String action;// 动作
        @Expose
        @SerializedName("what")
        public String what;// 作用事物
        @Expose
        @SerializedName("time")
        public String time;// 发生时间
        @Expose
        @SerializedName("state")
        public String state;// 消息状态，0-已读， 1-未读
        @Expose
        @SerializedName("cosplay_id")
        public int cosplyaId;
        @Expose
        @SerializedName("is_cosplay_exist")
        public int cosplayExist;
    }
}
